<!--{template common/mobile_simple_start}-->
    <link href="{MOD_PATH}/images/mobile/css/user.css?{VERHASH}" rel="stylesheet" media="all" />
    <style type="text/css">
		body {
			-webkit-overflow-scrolling: touch;
			overflow: auto;
		}
        .Topcarousel{
            line-height: 55px;
            width: 100%;
            height: 100%;
            display: inline-block;
            text-align: center;
            font-size: 20px;
            color: #fff;
        }
	</style>
<!--{template common/header_simple_end}-->
<!--{template common/mobile_commer_header}-->
        <!--列表开始-->
        <div class="user-container">
            <div class="admin-wrap">
                <div class="user-top">
                    <div class="weui-cell weui-cell_access" href="javascript:;">
                         <div class="weui-cell__bd weui-cell_primary">
                            <p>{lang administrator}</p>
                        </div>
                        <div class="user-num">{lang total}{eval echo count($adm_userlist)}{lang people}</span></div>

                    </div>
                </div>
                <div class="admin-con">
                    <!--{loop $adm_userlist $value}-->
                        <div class="user-item">
                            <div class="user-image">{eval echo avatar_block($value['uid'])}</div>
                            <p class="user-name">$value[username]</p>
                        </div>
                    <!--{/if}-->
                </div>
            </div>
            <div class="cooper-wrap">
                <div class="user-top">
                    <div class="weui-cell weui-cell_access" href="javascript:;">
                         <div class="weui-cell__bd weui-cell_primary">
                            <p>{lang cooper_member}</p>
                        </div>
                        <div class="user-num">{lang total}{eval echo count($cooper_userlist)}{lang people}<span class="weui-cell__ft"></span></div>

                    </div>
                </div>
                <div class="admin-con">
                    <!--{loop $cooper_userlist $value}-->
                        <div class="user-item">
                            <div class="user-image">{eval echo avatar_block($value['uid'])}</div>
                            <p class="user-name">$value[username]</p>
                        </div>
                    <!--{/if}-->
                    <div class="add-item adduser" perm='2'>
                        <div class="user-image"><img src="{MOD_PATH}/images/addUser1.png" alt=""></div>
                        <p class="user-name">{lang add_member}</p>
                    </div>
                </div>
            </div>
            <div class="member-wrap">
                <div class="user-top">
                    <div class="weui-cell weui-cell_access" href="javascript:;">
                        <div class="weui-cell__bd weui-cell_primary">
                            <p>{lang observer}</p>
                        </div>
                        <div class="user-num">{lang total}{eval echo count($follow_userlist)}{lang people}<span class="weui-cell__ft"></span></div>

                    </div>
                </div>
                <div class="admin-con">
                    <!--{loop $follow_userlist $value}-->
                        <div class="user-item">
                            <div class="user-image">{eval echo avatar_block($value['uid'])}</div>
                            <p class="user-name">$value[username]</p>
                        </div>
                    <!--{/loop}-->
                    <!--{if $user_list_next}-->
                    <div class="user-item userlist-next"><a class="loadmore" href="javascript:;" onclick="loadmore('{$limit}', 'user')">{lang loadmore}</a></div>
                    <!--{/if}-->
                    <div class="add-item adduser" perm='1'>
                        <div class="user-image"><img src="{MOD_PATH}/images/addUser1.png" alt=""></div>
                        <p class="user-name">{lang add_member}</p>
                    </div>
                </div>

        </div>
        <!--列表结束-->
    </body>
    <script type="text/javascript">
        jQuery(function(){
            $(document).on('click','.adduser',function(){
                var perm = jQuery(this).attr('perm');
                var adm_ids = '{$adm_ids}';
                var cooper_ids = '{$cooper_ids}';
                var follow_ids = '{$follow_ids}';
                if (perm == '3') {
                    uids = adm_ids;
                } else if (perm == '2') {
                    uids = cooper_ids;
                } else {
                    uids = follow_ids;
                }
                var action = '{DZZSCRIPT}?mod=system&op=selorguser&stype=2&multiple=1&ids='+uids,
                    callback_url = '{MOD_URL}&op=ajax&do=mobile_member_add&cid=$cid';
                if ($('#submitForm').length < 1) {
                    var form = $('<form id="submitForm"></form>');
                    $(document.body).append(form);
                } else {
                    form = $('#submitForm');
                }
                if ($('#callbackdata').length < 1) {
                    var callbackdata = $('<input type="hidden" name="callback_url" id="callbackdata" />');
                    form.append(callbackdata);
                } else {
                    var callbackdata = $('#callbackdata');
                }
                callbackdata.val(callback_url);
                form.attr('action', action);
                form.attr('method', 'post');
                form.submit();
                return false;
            })
        })
    </script>

</html>
